<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
	<META HTTP-EQUIV="Expires" CONTENT="-1">
<title>Insert title here</title>
</head>
<body>
<h2>Add Product</h2>
<s:form action="registerProduct">
	<s:textfield name="product.name" label="Name"/>
	<s:textfield name="product.price" label="Price"/>
	<s:textfield name="product.expiredDate" label="Expired Date"/>
	<s:select name="product.category" label="Category"
		headerKey="1" headerValue="(Select)" 
		list="#{'Lacteo':'Lacteo','Harina':'Harina'}"/>
	<s:submit value="Register"/>
</s:form>
<s:property value="message"/>
</body>
</html>